package com.akn.mvvmlibrary.factory

import android.content.Intent
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.akn.mvvmlibrary.viewmodel.BaseViewModel

class AppViewModelFactory(val viewModel: BaseViewModel ) : ViewModelProvider.Factory {
    override fun <T : ViewModel> create(modelClass: Class<T>): T {
        @Suppress("UNCHECKED_CAST")
        return viewModel as T
    }
}